package artid.com.arttogoa.parser;

import java.io.Serializable;

import org.json.JSONObject;

/**
 * @author ksn
 *
 */
/**
 * @author ksn
 *
 */
public class NormalItem extends AppItem implements Serializable {
	private static final long serialVersionUID = 1L;
	// {
	// "ret": "1",
	// "msg": "头像上传成功!",
	// "data":
	// "http://124.193.95.86:13001/upload/artPlatform/Uploads/Avatar/2016-05-09/7fa803e8b4.png"
	// }
	public int ret;

	public String msg;

	public String data;

	@Override
	public void parse(JSONObject obj) {
		this.ret = obj.optInt("ret", 0);
		this.msg = obj.optString("msg");
		this.data = obj.optString("data");
	}

	@Override
	public String toString() {
		return "NormalItem [ret=" + ret + ", msg=" + msg + ", data=" + data
				+ "]";
	}

}
